package com.wilmer.dynamic.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wilmer.common.annotation.Excel;
import com.wilmer.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 园内动态对象 sys_dynamic
 * 
 * @author ruoyi
 * @date 2024-04-24
 */
public class SysDynamic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 动态序号 */
    private Long dynamicId;

    /** 动态标题 */
    @Excel(name = "动态标题")
    private String dynamicTitle;

    /** 动态内容 */
    @Excel(name = "动态内容")
    private String dynamicContent;

    /** 发布人 */
    @Excel(name = "发布人")
    private String createBy;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 幼儿园id */
    @Excel(name = "幼儿园id")
    private Long deptId;

    public void setDynamicId(Long dynamicId) 
    {
        this.dynamicId = dynamicId;
    }

    public Long getDynamicId() 
    {
        return dynamicId;
    }
    public void setDynamicTitle(String dynamicTitle) 
    {
        this.dynamicTitle = dynamicTitle;
    }

    public String getDynamicTitle() 
    {
        return dynamicTitle;
    }
    public void setDynamicContent(String dynamicContent) 
    {
        this.dynamicContent = dynamicContent;
    }

    public String getDynamicContent() 
    {
        return dynamicContent;
    }

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dynamicId", getDynamicId())
            .append("dynamicTitle", getDynamicTitle())
            .append("dynamicContent", getDynamicContent())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
                .append("deptId", getDeptId())
            .toString();
    }
}
